package org.openstock.impl.def.charting.ui.swing.model;

import java.util.HashMap;
import java.util.Map;

import org.openstock.api.charting.model.Orientation;

public abstract class AbstractOrientationallyVisible {

	private Map<Orientation,Boolean> map = new HashMap<Orientation, Boolean>();
	
	public AbstractOrientationallyVisible() {
		for(Orientation orientation : Orientation.values()){
			map.put(orientation, Boolean.TRUE);
		}
	}
	
	public boolean isVisible(Orientation orientation){
		return map.get(orientation);
	}
	
	public void setVisible(Orientation orientation, Boolean value){
		map.put(orientation, value);
	}
	
}
